package makovo.documents;

import java.io.IOException;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;

import makovo.entities.Applicant;
import makovo.entities.SocInfo;
import makovo.data.Resources;

public class FormatoEstadoCivil {

	public static String nada() {
		return "COSA NADA";
	}

	public static Applicant getApplicantInfo(String curp) {
		Applicant ret = null;
		try {
			ret = Resources.getApplicantInfoByCURP(curp);
		} catch (ClassNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return ret;
	}

	public static SocInfo getSocInfo(String curp) {
		SocInfo ret = null;
		try {
			ret = Resources.getSocInfoByCURP(curp);
		} catch (ClassNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return ret;
	}
}
